package com.shujia.hbase;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;

public class Demo13Log4j {


    public static void main(String[] args) {
        //创建log4j打日志的对象
        Logger logger = LoggerFactory.getLogger(Demo13Log4j.class);
        logger.info("正常");
        logger.debug("测试");
        logger.error("错误");
        logger.warn("警告");

        System.out.println("当前系统时间:" + new Date());

    }
}
